String (@NotNull Project project, @NotNull String fileText) { final PsiClass[] classes = getPastedClasses(project, fileText); if (classes.length < 1) return null; for (PsiClass aClass : classes) { if (aClass.hasModifierProperty(PsiModifier.PUBLIC)) { return aClass.getName(); } } return classes[0].getName(); }