@NotNull @Override public JavaResolveResult[] resolve(@NotNull final PsiImportStaticReferenceElementImpl referenceElement, final boolean incompleteCode) { final PsiElement qualifier = referenceElement.getQualifier(); if (!(qualifier instanceof PsiJavaCodeReferenceElement)) return JavaResolveResult.EMPTY_ARRAY; final PsiElement target = ((PsiJavaCodeReferenceElement)qualifier).resolve(); if (!(target instanceof PsiClass)) return JavaResolveResult.EMPTY_ARRAY; final StaticImportResolveProcessor processor = new StaticImportResolveProcessor(referenceElement); target.processDeclarations(processor, ResolveState.initial(), referenceElement, referenceElement); return processor.getResults(); }