public static PsiField @NotNull [] filterAvailableFields(PsiClass clazz,
                                                             boolean includeSuperClass,
                                                             FilterPattern pattern) {
        if (LOG.isDebugEnabled()) LOG.debug("Filtering fields using the pattern: " + pattern);
        List<PsiField> availableFields = new ArrayList<>();
        collectAvailableFields(clazz, clazz, includeSuperClass, pattern, availableFields, new HashSet<>());
        return availableFields.toArray(PsiField.EMPTY_ARRAY);
    }
public static PsiField @NotNull [] filterAvailableFields(PsiClass clazz,
                                                             boolean includeSuperClass,
                                                             FilterPattern pattern)