void (PsiElement[] elements) { boolean allFiles = true; boolean allDirectories = true; for (PsiElement element : elements) { if (element instanceof PsiDirectory) { allFiles = false; } else { allDirectories = false; } } if (allFiles) { myInformationLabel.setText(RefactoringBundle.message("copy.files.copy.specified.files.label")); } else if (allDirectories) { myInformationLabel.setText(RefactoringBundle.message("copy.files.copy.specified.directories.label")); } else { myInformationLabel.setText(RefactoringBundle.message("copy.files.copy.specified.mixed.label")); } }