int (final RuntimeConfigurationProducer producer1, final RuntimeConfigurationProducer producer2) { final PsiElement psiElement1 = producer1.getSourceElement(); final PsiElement psiElement2 = producer2.getSourceElement(); if (doesContain(psiElement1, psiElement2)) return -PREFERED; if (doesContain(psiElement2, psiElement1)) return PREFERED; return producer1.compareTo(producer2); }