private static boolean isFactoryMethod(PsiMethod method) {
      return method.hasModifierProperty(PsiModifier.STATIC) &&
             method.getParameterList().isEmpty() &&
             !PsiTypes.voidType().equals(method.getReturnType());
    }
private static boolean isFactoryMethod(PsiMethod method)