String (PsiElement[] elements) { if (elements.length == 1 && !(elements[0] instanceof PsiPackage) && !(elements[0] instanceof PsiDirectory)) { return JavaRefactoringBundle.message("copy.handler.copy.class.with.dialog"); } return JavaRefactoringBundle.message("copy.handler.copy.classes.with.dialog"); }