JpsAntArtifactExtension (JpsArtifact artifact, ArtifactBuildPhase buildPhase) { switch (buildPhase) { case PRE_PROCESSING: return JpsAntExtensionService.getPreprocessingExtension(artifact); case POST_PROCESSING: return JpsAntExtensionService.getPostprocessingExtension(artifact); default: return null; } }