private static boolean isMeaningfulClassPatternAttribute(@NotNull LookupElement lookupElement) {
    String lookupString = lookupElement.getLookupString();
    if (lookupString.contains(".") || PyUtilCore.isSpecialName(lookupString)) {
      return false;
    }
    PsiElement elem = lookupElement.getPsiElement();
    if (elem instanceof PyClass) {
      return false;
    }
    if (elem instanceof PyFunction && ((PyFunction)elem).getProperty() == null) {
      return false;
    }
    return true;
  }
private static boolean isMeaningfulClassPatternAttribute(@NotNull LookupElement lookupElement)