void (DataContext dataContext, Set<PsiElement> filesOrDirs) { Form[] forms = Form.DATA_KEY.getData(dataContext); LOG.assertTrue(forms != null); PsiClass[] classesToMove = new PsiClass[forms.length]; PsiFile[] filesToMove = new PsiFile[forms.length]; for(int i=0; i<forms.length; i++) { classesToMove [i] = forms [i].getClassToBind(); if (classesToMove[i] != null) { final PsiFile containingFile = classesToMove[i].getContainingFile(); if (containingFile != null) { filesOrDirs.add(containingFile); } } filesToMove [i] = forms [i].getFormFiles() [0]; if (filesToMove[i] != null) { filesOrDirs.add(filesToMove[i]); } } }