String (@NotNull String classNameWithInnerClasses) { int dot = classNameWithInnerClasses.indexOf('.'); if (dot < 0) { return classNameWithInnerClasses; } else { return classNameWithInnerClasses.substring(0, dot); } }