@@ -46,10 +46,10 @@ public static boolean isPartialFile(final PsiFile file) {
4646 return name .endsWith (PARTIAL_DQL_SUFFIX );
4747 }
4848
49- public static List <DQLFieldExpression > findFieldsInFile (PsiFile dqlFile , String key ) {
49+ public static List <DQLFieldExpression > findFieldsInFile (PsiFile file , String key ) {
5050 List <DQLFieldExpression > result = new ArrayList <>();
51- if (dqlFile != null ) {
52- Collection <DQLFieldExpression > fields = PsiTreeUtil .findChildrenOfType (dqlFile , DQLFieldExpression .class );
51+ if (file != null ) {
52+ Collection <DQLFieldExpression > fields = PsiTreeUtil .findChildrenOfType (file , DQLFieldExpression .class );
5353 if (!fields .isEmpty ()) {
5454 for (DQLFieldExpression field : fields ) {
5555 if (key .equals (field .getName ())) {
@@ -61,10 +61,10 @@ public static List<DQLFieldExpression> findFieldsInFile(PsiFile dqlFile, String
6161 return result ;
6262 }
6363
64- public static List <DQLFieldExpression > findFieldsInFile (PsiFile dqlFile ) {
64+ public static List <DQLFieldExpression > findFieldsInFile (PsiFile file ) {
6565 List <DQLFieldExpression > result = new ArrayList <>();
66- if (dqlFile != null ) {
67- Collection <DQLFieldExpression > fields = PsiTreeUtil .findChildrenOfType (dqlFile , DQLFieldExpression .class );
66+ if (file != null ) {
67+ Collection <DQLFieldExpression > fields = PsiTreeUtil .findChildrenOfType (file , DQLFieldExpression .class );
6868 if (!fields .isEmpty ()) {
6969 Collections .addAll (result , fields .toArray (new DQLFieldExpression [0 ]));
7070 }
@@ -76,7 +76,7 @@ public static List<DQLFieldExpression> findFieldsInProject(@NotNull Project proj
7676 List <DQLFieldExpression > result = new ArrayList <>();
7777 Collection <VirtualFile > virtualFiles = FileTypeIndex .getFiles (DQLFileType .INSTANCE , GlobalSearchScope .allScope (project ));
7878 for (VirtualFile virtualFile : virtualFiles ) {
79- DQLFile file = ( DQLFile ) PsiManager .getInstance (project ).findFile (virtualFile );
79+ PsiFile file = PsiManager .getInstance (project ).findFile (virtualFile );
8080 if (file != null ) {
8181 Collection <DQLFieldExpression > properties = PsiTreeUtil .findChildrenOfType (file , DQLFieldExpression .class );
8282 result .addAll (properties );
@@ -89,7 +89,7 @@ public static List<DQLFieldExpression> findFieldsInProject(@NotNull Project proj
8989 List <DQLFieldExpression > result = new ArrayList <>();
9090 Collection <VirtualFile > virtualFiles = FileTypeIndex .getFiles (DQLFileType .INSTANCE , GlobalSearchScope .allScope (project ));
9191 for (VirtualFile virtualFile : virtualFiles ) {
92- DQLFile file = ( DQLFile ) PsiManager .getInstance (project ).findFile (virtualFile );
92+ PsiFile file = PsiManager .getInstance (project ).findFile (virtualFile );
9393 if (file != null ) {
9494 Collection <DQLFieldExpression > properties = PsiTreeUtil .findChildrenOfType (file , DQLFieldExpression .class );
9595 for (DQLFieldExpression property : properties ) {
0 commit comments