@Test public void propDefaultExtractionWithField() { testHelper.getPsiClass( psiClasses -> { Assert.assertNotNull(psiClasses); PsiClass cls = psiClasses.get(0); final ImmutableList<PropDefaultModel> propDefaults = PsiPropDefaultsExtractor.getPropDefaults(cls); PropDefaultsExtractorTestHelper.assertPropDefaultsExtraction(propDefaults); return true; }, "PropDefaultExtractionWithField.java"); }
public static ImmutableList<PropDefaultModel> getPropDefaults(PsiClass psiClass) { final List<PropDefaultModel> propDefaults = new ArrayList<>(); for (PsiField psiField : psiClass.getFields()) { propDefaults.addAll(extractFromField(psiField)); } return ImmutableList.copyOf(propDefaults); }
PsiPropDefaultsExtractor { public static ImmutableList<PropDefaultModel> getPropDefaults(PsiClass psiClass) { final List<PropDefaultModel> propDefaults = new ArrayList<>(); for (PsiField psiField : psiClass.getFields()) { propDefaults.addAll(extractFromField(psiField)); } return ImmutableList.copyOf(propDefaults); } }
PsiPropDefaultsExtractor { public static ImmutableList<PropDefaultModel> getPropDefaults(PsiClass psiClass) { final List<PropDefaultModel> propDefaults = new ArrayList<>(); for (PsiField psiField : psiClass.getFields()) { propDefaults.addAll(extractFromField(psiField)); } return ImmutableList.copyOf(propDefaults); }  }
PsiPropDefaultsExtractor { public static ImmutableList<PropDefaultModel> getPropDefaults(PsiClass psiClass) { final List<PropDefaultModel> propDefaults = new ArrayList<>(); for (PsiField psiField : psiClass.getFields()) { propDefaults.addAll(extractFromField(psiField)); } return ImmutableList.copyOf(propDefaults); }  static ImmutableList<PropDefaultModel> getPropDefaults(PsiClass psiClass); }
PsiPropDefaultsExtractor { public static ImmutableList<PropDefaultModel> getPropDefaults(PsiClass psiClass) { final List<PropDefaultModel> propDefaults = new ArrayList<>(); for (PsiField psiField : psiClass.getFields()) { propDefaults.addAll(extractFromField(psiField)); } return ImmutableList.copyOf(propDefaults); }  static ImmutableList<PropDefaultModel> getPropDefaults(PsiClass psiClass);  }