[groovy] clean up GroovyPsiManager
[idea/community.git] / java / idea-ui / src / com / intellij / openapi / roots / ui / configuration / classpath / AddLibraryDependencyAction.java
index f0181b4fc432a44d0794896ea978a5b1ca722c6b..b038ac9365d5c3c855d79c4fb3a14dbe98b02eb0 100644 (file)
@@ -30,6 +30,7 @@ import com.intellij.openapi.ui.Messages;
 import com.intellij.openapi.ui.popup.PopupStep;
 import com.intellij.util.PlatformIcons;
 import com.intellij.util.ui.classpath.ChooseLibrariesFromTablesDialog;
+import org.jetbrains.annotations.Nls;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
 
@@ -39,8 +40,10 @@ import java.util.function.Predicate;
 class AddLibraryDependencyAction extends AddItemPopupAction<Library> {
   private final StructureConfigurableContext myContext;
 
-  AddLibraryDependencyAction(ClasspathPanel classpathPanel, final int index, final String title,
-                                    final StructureConfigurableContext context) {
+  AddLibraryDependencyAction(ClasspathPanel classpathPanel,
+                             final int index,
+                             final @Nls(capitalization = Nls.Capitalization.Title) String title,
+                             final StructureConfigurableContext context) {
     super(classpathPanel, index, title, PlatformIcons.LIBRARY_ICON);
     myContext = context;
   }
@@ -81,7 +84,7 @@ class AddLibraryDependencyAction extends AddItemPopupAction<Library> {
     return false;
   }
 
-  private java.util.function.Predicate<Library> getNotAddedSuitableLibrariesCondition() {
+  private Predicate<Library> getNotAddedSuitableLibrariesCondition() {
     ProjectFacetsConfigurator facetsConfigurator = myContext.getModulesConfigurator().getFacetsConfigurator();
     return LibraryEditingUtil.getNotAddedSuitableLibrariesCondition(myClasspathPanel.getRootModel(), facetsConfigurator);
   }