Example

public class TestClass {
private class InnerClass {
}
}


Solution
For instance if the convention was to start an inner class' name with "IC", then prefix the class name with "IC".

To edit the regular expression, click on the [Details...] button.

public class TestClass {
private class ICInnerClass {
}
}